package git.soulbgm.controller;

import git.soulbgm.pojo.User;
import git.soulbgm.service.TestService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author 贺瑞杰
 * @version V1.0
 * @date 2018-09-12 0:04
 * @description
 */
@RestController
public class TestController {

    @Resource
    private TestService testService;

    @RequestMapping(value = "/", produces = "application/json;charset=utf-8")
    @ResponseBody
    public String test() {
        User user = new User();
        user.setName("张三");
        return testService.sayHello(user);
    }

}
